package znbkListBj.api;


import com.example.lancooznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxFragment;

import retrofit2.Retrofit;
import rx.Observable;


/**
 * Created by Administrator on 2018\3\16 0016.
 */

public class NotesListApi extends BaseApi {

    private String QuesID = "";
    private int PageNumber = 1;
    private int PageSize = 10;
    private String SearchInfo = "";

    public NotesListApi(HttpOnNextListener listener, RxFragment rxFragment) {
        super(listener, rxFragment);
    }

    public String getQuesID() {
        return QuesID;
    }

    public void setQuesID(String quesID) {
        QuesID = quesID;
    }

    public int getPageNumber() {
        return PageNumber;
    }

    public void setPageNumber(int pageNumber) {
        PageNumber = pageNumber;
    }

    public int getPageSize() {
        return PageSize;
    }

    public void setPageSize(int pageSize) {
        PageSize = pageSize;
    }

    public String getSearchInfo() {
        return SearchInfo;
    }

    public void setSearchInfo(String searchInfo) {
        SearchInfo = searchInfo;
    }


    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getNotesListEntity(UserInfo.StuId,UserInfo.SubjectId,UserInfo.StageNo, PageNumber,PageSize,SearchInfo,QuesID);
    }
}
